package com.hanggold.springboot.lesson2.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author smc
 * @date 2019-06-03 16:21
 * @since
 **/
@Controller
@RequestMapping("lesson2")
public class HomeThymeleafController {

    @GetMapping("home")
    public String home(){
        return "home";
    }

    @GetMapping("user")
    public String user(){
        return "user/index";
    }



}
